package com.yks.hbo.amazon.vo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @Description: 获取token返回实体
 * @Author: guangfu.yang
 * @Date: 2019/12/20 17:25
 */
public class TokenResponse {
    /**
     * token
     */
    @JSONField(name = "access_token")
    private String accessToken;
    /**
     * 有效期，默认30天，以秒为单位
     */
    @JSONField(name = "expires_in")
    private Integer expiresIn;
    /**
     * 过期时间
     */
    @JSONField(name = "expiry_time")
    private Date expiryTime;
    /**
     * 用于token过期后的请求新token的参数
     */
    @JSONField(name = "refresh_token")
    private String refreshToken;
    /**
     * 用户id
     */
    @JSONField(name = "merchant_user_id")
    private String merchantUserId;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    public Date getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Date expiryTime) {
        this.expiryTime = expiryTime;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getMerchantUserId() {
        return merchantUserId;
    }

    public void setMerchantUserId(String merchantUserId) {
        this.merchantUserId = merchantUserId;
    }
}
